package com.oauth.google.server.picasa.service;

import java.util.List;

import com.oauth.common.server.beans.OAuthAccessToken;
import com.oauth.common.server.beans.OAuthRequestToken;
import com.oauth.google.client.beans.picassa.GooglePicasaAlbum;
import com.oauth.google.client.beans.picassa.PicasaPhoto;
import com.oauth.google.server.beans.GoogleRequestToken;

public interface PicasaOAuthService {
	public GoogleRequestToken getRequestToken() throws Exception;

	public OAuthAccessToken getAccessTokenFromDB(Long pMemberId)
			throws Exception;

	public void persistAccessToken(OAuthAccessToken pAccessToken, Long pMemberId)
			throws Exception;

	public OAuthAccessToken getAccessTokenFromRequestToken(
			OAuthRequestToken pRequestToken, String pOAuthVerifier)
			throws Exception;

	List<GooglePicasaAlbum> getPicasaAlbums(Long pMemberId) throws Exception;

	List<PicasaPhoto> getPhotosForAlbum(Long pMemberId, String pAlbumId)
			throws Exception;
}
